IOService¶
Inherits Instance
Class for interacting with IO in project, only usable with scripts with the respective permission.
Static Class
This object is a static class. It can be accessed like this: IO.
Additionally, it cannot be created in the creator menu or with Instance.New().
Not newable
This object cannot be created by scripts using Instance.New().
Methods¶
ReadBytesFromPath → buffer¶
Parameters: path [ string ]
Reads the buffer file from the given path.
ReadTextFromPath → string¶
Parameters: path [ string ]
Reads the text file data from the given path.
WriteBytesToPath → nil¶
Parameters
path [ string ]
bytes [ buffer ]
Writes buffer data to the file in the project.
WriteTextToPath → nil¶
Parameters
path [ string ]
txt [ string ]
Writes the text file data to the path.
ListProjectFiles → { string }¶
Parameters: ``
Lists all files in the project.
ReadBytesFromID → buffer¶
Parameters: id [ string ]
Reads the file data from the linked ID.
GetPathFromID → string¶
Parameters: indexID [ string ]
Gets the file path from the linked ID.